import 'package:intl/intl.dart';

extension DateTimeExtension on DateTime {
  DateTime startOfToday() {
    return DateTime(this.year, this.month, this.day);
  }

  DateTime endOfToday() {
    return DateTime(this.year, this.month, this.day, 23, 59, 59);
  }

  String formatDateYYMMDD_HHMMSS() {
    return DateFormat('yyyy-MM-dd HH:mm:ss').format(this);
  }
}
